<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./layui-v2.6.8/layui/css/layui.css">
    <style>
        .layui-row>div {
            height: 200px;
            margin-bottom: 30px;
        }

        .layui-row>div:nth-child(odd) {
            background-color: salmon;
        }

        .layui-row>div:nth-child(even) {
            background-color: bisque;
        }
    </style>
</head>

<body>
    <!-- 容器 [固定容器]-->
    <div class="layui-container">
        <!-- 行 -->
        <div class="layui-row">
            <!-- 12份 -->
            <div class="layui-col-md1">1</div>
            <div class="layui-col-md1">2</div>
            <div class="layui-col-md1">3</div>
            <div class="layui-col-md1">4</div>
            <div class="layui-col-md1">5</div>
            <div class="layui-col-md1">6</div>
            <div class="layui-col-md1">7</div>
            <div class="layui-col-md1">8</div>
            <div class="layui-col-md1">9</div>
            <div class="layui-col-md1">10</div>
            <div class="layui-col-md1">11</div>
            <div class="layui-col-md1">12</div>
        </div>
        <!-- 行 -->
        <div class="layui-row">
            <div class="layui-col-md3">1</div>
            <div class="layui-col-md9">3</div>
        </div>
        <!-- 行 -->
        <div class="layui-row">
            <div class="layui-col-md6">左侧</div>
            <div class="layui-col-md6">右侧</div>
        </div>
    </div>


    <!-- 容器2 宽度取决于屏幕宽-->
    <div class="layui-fluid">
        <!-- 行 -->
        <div class="layui-row">
            <!-- 12份 -->
            <div class="layui-col-md1">1</div>
            <div class="layui-col-md1">2</div>
            <div class="layui-col-md1">3</div>
            <div class="layui-col-md1">4</div>
            <div class="layui-col-md1">5</div>
            <div class="layui-col-md1">6</div>
            <div class="layui-col-md1">7</div>
            <div class="layui-col-md1">8</div>
            <div class="layui-col-md1">9</div>
            <div class="layui-col-md1">10</div>
            <div class="layui-col-md1">11</div>
            <div class="layui-col-md1">12</div>
        </div>
        <!-- 大于1200 一行四个   大于992 一行三个   大于768一行两个 -->
        <!-- 响应式布局方案 -->
        <div class="layui-row">
            <div class="layui-col-lg3 layui-col-md4 layui-col-sm6 layui-col-xs3">1</div>
            <div class="layui-col-lg3 layui-col-md4 layui-col-sm6 layui-col-xs3">1</div>
            <div class="layui-col-lg3 layui-col-md4 layui-col-sm6 layui-col-xs3">1</div>
            <div class="layui-col-lg3 layui-col-md4 layui-col-sm6 layui-col-xs3">1</div>
        </div>
    </div>
</body>

</html>